package cloud.maque.base.dingding.conf;

import com.aliyun.teaopenapi.models.Config;

/**
 * 钉钉客户端配置(新版)
 *
 * @author zhuyf
 * @date 2023/3/1 13:18
 */
public class DingDingClientConfig {

    public static com.aliyun.dingtalkoauth2_1_0.Client authClient() throws Exception {

        Config config = new Config();
        config.protocol = "https";
        config.regionId = "central";
        return new com.aliyun.dingtalkoauth2_1_0.Client(config);
    }

    public static com.aliyun.dingtalkcontact_1_0.Client contactClient() throws Exception {

        Config config = new Config();
        config.protocol = "https";
        config.regionId = "central";
        return new com.aliyun.dingtalkcontact_1_0.Client(config);
    }

}
